import axios from "../model/axios"
import api from "../model/api"

export const libraryList = (params:any)=>{
    return axios({
        method: "get",
        url: api.library.libraryList,
        headers: {
            "Authorization": window.localStorage.getItem("token")
        },
        params
    })
}

export const libraryDetails = (id: number) => {
    return axios({
        method: "get",
        url: api.library.libraryDetails+id,
    })
}

export const libraryComment = (id: number) => {
    return axios({
        method: "get",
        url:api.library.libraryComment+id,
    })
}
